﻿
<%@ Page Language="C#" Theme="Default" MasterPageFile="~/MasterPages/admin.master" AutoEventWireup="true"  CodeFile="DetailBatchGpp.aspx.cs" Inherits="DetailBatchGpp" Title="DetailBatchGpp List" %>

<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder2" Runat="Server">Detail Batch Gpp List</asp:Content>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
		<data:GridViewSearchPanel ID="GridViewSearchPanel1" runat="server" GridViewControlID="GridView1" PersistenceMethod="Session" />
		<br />
		<data:EntityGridView ID="GridView1" runat="server"			
				AutoGenerateColumns="False"					
				OnSelectedIndexChanged="GridView1_SelectedIndexChanged"
				DataSourceID="DetailBatchGppDataSource"
				DataKeyNames="Id"
				AllowMultiColumnSorting="false"
				DefaultSortColumnName="" 
				DefaultSortDirection="Ascending"	
				ExcelExportFileName="Export_DetailBatchGpp.xls"  		
			>
			<Columns>
				<asp:CommandField ShowSelectButton="True" ShowEditButton="True" />				
				<data:HyperLinkField HeaderText="Batch Id" DataNavigateUrlFormatString="BatchEdit.aspx?Id={0}" DataNavigateUrlFields="Id" DataContainer="BatchIdSource" DataTextField="BatchNo" />
				<asp:BoundField DataField="Me1" HeaderText="Me1" SortExpression="ME1"  />
				<asp:BoundField DataField="Me2" HeaderText="Me2" SortExpression="ME2"  />
				<data:BoundRadioButtonField DataField="IsStop" HeaderText="Is Stop" SortExpression="[IsStop]"  />
				<asp:BoundField DataField="CreatedAt" DataFormatString="{0:d}" HtmlEncode="False" HeaderText="Created At" SortExpression="CreatedAt"  />
				<data:HyperLinkField HeaderText="Created By" DataNavigateUrlFormatString="UserEdit.aspx?Id={0}" DataNavigateUrlFields="Id" DataContainer="CreatedBySource" DataTextField="Username" />
				<data:HyperLinkField HeaderText="Latest" DataNavigateUrlFormatString="DetailBatchGppEdit.aspx?Id={0}" DataNavigateUrlFields="Id" DataContainer="LatestSource" DataTextField="Me1" />
				<asp:BoundField DataField="InputTime" DataFormatString="{0:d}" HtmlEncode="False" HeaderText="Input Time" SortExpression="InputTime"  />
			</Columns>
			<EmptyDataTemplate>
				<b>No DetailBatchGpp Found!</b>
			</EmptyDataTemplate>
		</data:EntityGridView>
		<br />
		<asp:Button runat="server" ID="btnDetailBatchGpp" OnClientClick="javascript:location.href='DetailBatchGppEdit.aspx'; return false;" Text="Add New"></asp:Button>
		<data:DetailBatchGppDataSource ID="DetailBatchGppDataSource" runat="server"
			SelectMethod="GetPaged"
			EnablePaging="True"
			EnableSorting="True"
			EnableDeepLoad="True"
			>
			<DeepLoadProperties Method="IncludeChildren" Recursive="False">
	            <Types>
					<data:DetailBatchGppProperty Name="Batch"/> 
					<data:DetailBatchGppProperty Name="DetailBatchGpp"/> 
					<data:DetailBatchGppProperty Name="User"/> 
					<%--<data:DetailBatchGppProperty Name="DetailBatchGppCollection" />--%>
				</Types>
			</DeepLoadProperties>
			<Parameters>
				<data:CustomParameter Name="WhereClause" Value="" ConvertEmptyStringToNull="false" />
				<data:CustomParameter Name="OrderByClause" Value="" ConvertEmptyStringToNull="false" />
				<asp:ControlParameter Name="PageIndex" ControlID="GridView1" PropertyName="PageIndex" Type="Int32" />
				<asp:ControlParameter Name="PageSize" ControlID="GridView1" PropertyName="PageSize" Type="Int32" />
				<data:CustomParameter Name="RecordCount" Value="0" Type="Int32" />
			</Parameters>
		</data:DetailBatchGppDataSource>
	    		
</asp:Content>



